﻿using System;
using Microsoft.Xna.Framework;

namespace SmlEngine.Sprites
{
    /// <summary>
    /// Defines a base for a sprite.
    /// </summary>
    public abstract class SpriteBase : IEntity, IDisposable
    {
        public virtual Vector2 Position { get; set; }
        public virtual int Section { get; set; }
        public virtual Point Size { get; set; }

        public virtual BoundingRectangle Bounds
        {
            get { return new BoundingRectangle(Position.X, Position.Y, Size.X, Size.Y); }
        }

        public virtual string GraphicsLocation { get; set; }
        public virtual int Id { get; set; }

        public virtual void Dispose() { }
    }
}
